#!/bin/sh
#echo "exec" "MyAutoTestContext" $1  $2 $3 $4  $5

java -Dfile.encoding=UTF-8 com.github.MyAutoTestContext $*

flag=false
userName=''
if [[ "$1" == 'user' ]]; then
  echo ddddd
  tokenPath=$(cat currentPath)

  for command in $*; do

    if [[ "$flag" == 'true' ]]; then
      flag=true
      userName=$command
      flag=false
    fi
    if [[ "$command" == '-t' ]]; then
      flag=true
    fi

  done
  if [ [userName != ''] ]; then
    data=$(cat $tokenPath\\wyd\\temp\\user\\$userName)
    read str <<<$(echo $data | awk -F ',' '{print $3}' | awk -F ':' '{print $3}')
    java -Dfile.encoding=UTF-8 com.github.io.ParseToken $str $userName
  fi

fi
